import java.sql.Date;


public class Band {

	private String name;
	private String genre;
	private Repertoire rep = null;
	private Bandmitglieder band = null;
	private Verwaltung events = null;
	
	public Band(){
		this.setName("undefined");
		this.setGenre("undefined");
		events = new Verwaltung();
		band = new Bandmitglieder();
		rep = new Repertoire();
	}
	public Band(String name, String genre){
		this.setName(name);
		this.setGenre(genre);
		events = new Verwaltung();
		band = new Bandmitglieder();
		rep = new Repertoire();
	}
	//VERWALTUNG
	public void addEvent(String type, Date date, int duration, String location, double costs){
		events.addEvent(type, date, duration, location, costs);
	}
	public String listEvents(String type, Date startDate, Date endDate){
		return events.listEvents(type, startDate, endDate);
	}
	public double sumCosts(String type, Date startDate, Date endDate){
		return events.sumCosts(type, startDate, endDate);
	}
	//BANDMITGLIEDER
	public void addMember (String name, int phone, String instrument, Date joinDate, Date endDate){
		band.addMember(name, phone, instrument, joinDate, endDate);
	}
	public void removeMember (String name, Date date) {
		band.removeMember(name, date);
	}
	public String listMembers(Date date){
		return band.listMembers(date);
	}
	//REPERTOIRE
	public void addSong(String Name, int length, Date releaseDate, Date endDate){
		rep.addSong(Name, length, releaseDate, endDate);
	}
	public void removeSong(String Name, Date endDate){
		rep.removeSong(Name, endDate);
	}
	public String listSongs(Date checkDate){
		return rep.listSongs(checkDate);
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGenre() {
		return genre;
	}
	public void setGenre(String genre) {
		this.genre = genre;
	}
	
	
}
